<!doctype html>
<html>
<head>
<!-- public overall situation -->
<link href="../../css/bootstrap.min.css" rel="stylesheet">
<link href="../../css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
<link href="../../css/style.css" rel="stylesheet">
<link href="../../css/indexstyle.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!--[if lt IE 9]>
　　　　<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
　　<![endif]-->
</head>
<body>
	<div class="content">
		<div class="row">
			<div class="noticecontent" id="noticecontent">
		    	<div class="titleNotice" id="titleNotice"></div>
		    	<div class="noticecontent-con" id="noticecontent-con">
		    		<input type="text" value=""  id="idNotice" name="idNotice" style="display: none;"/>
		    	</div>
		    </div>
		</div>
	</div>	
</body>
<script type="text/javascript" src="../../js/jquery.min.js"></script>
<script type="text/javascript" src="../../js/common.js"></script>
<!-- public quote -->
<script type="text/javascript">
	$(function(){
		getNoticeData();
	});
	
	function getNoticeData(){
		var id = getUrlData("idNotice");
		var token = getUrlData("token"); 
		var mobileFlag = getUrlData("mobileFlag");
		/* var token = "CB0IBh4ydlRPSwnXCkgYaZo9VklaTJrmRcZWbD+KbaX6gyQ5yYIxC/SluAfBn7f3J1Ismi+MxIA4qupX3Abu/vU="; */
		$.ajax({
	    	url:　NEMUS.basePath +　'OtherNoticeController/getById',
 			data:JSON.stringify({replaceId:id}),
 			contentType:'application/json;charset=utf-8',
    		type:'post',
	    	dataType:'json',
	    	beforeSend:function(request) {
	    		request.setRequestHeader(NEMUS.headerForToken, decodeURIComponent(token));
	    		request.setRequestHeader(NEMUS.mobileFlag, mobileFlag);
	    	},
 			success: function(datas){
 				  if(datas.flag == "100100") {
 					 var records = datas.result;
 					 $("#titleNotice").html(records.titleNotice);
 					 $("#noticecontent-con").html(records.contentNotice);
					 return;
				  }
				  alert(datas.message);
             }
	    	});
    	}
	
</script>
</html>
